﻿namespace WinForms.ControlList.Finance
{
    using Bll.Company;
    using Model.Systems;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;
    using WinForms;
    using WinForms.Properties;

    public class FrmGainStatList : Form
    {
        private Button btn_Close;
        private Button btnSearch;
        protected string CheckInputMoney = "";
        protected string CheckOutMoney = "";
        private IContainer components = null;
        private DateTimePicker dateTime_BeginTime;
        private DateTimePicker dateTime_EndTime;
        public const int HTCAPTION = 2;
        private Label label10;
        private Label label2;
        private Label label4;
        private Label label5;
        private Label lbl_CaiGouFuKuan;
        private Label lbl_CreateTime;
        private Label lbl_FeiYongZhiChu;
        private Label lbl_LiRun;
        private Label lbl_QtTaShouRu;
        private Label lbl_SalesValue;
        private Label lbl_ShiPaoChengBen;
        private Label lbl_SongLiChengBen;
        private Label lbl_XiaoShouChengBen;
        private Label lbl_XiaoShouChengBensj;
        private Label lbl_XiaoShouShouRu;
        private Label lblTitle;
        private Label lblTongJiShiJian;
        protected string OtherInputMoney = "";
        protected string OtherOutMoney = "";
        private Panel pan_AllPanel;
        private Panel pan_AllPlanes;
        private Panel pan_Bottoms;
        private Panel pan_Dock;
        private Panel pan_DockBottom;
        private Panel pan_DockLeft;
        private Panel pan_DockRight;
        private Panel pan_Lefts;
        private Panel pan_Rights;
        private Panel pan_Top;
        private Panel pan_TopJianGe;
        private Panel pan_TopLeft;
        private Panel pan_TopRight;
        private Panel pan_ZhongJian;
        private Panel pane_TopT;
        private Panel panel1;
        private Panel panel10;
        private Panel panel19;
        private Panel panel2;
        private Panel panel24;
        private Panel panel25;
        private Panel panel3;
        private Panel panel4;
        private Panel panel5;
        private Panel panel6;
        private Panel panel7;
        private Panel panel8;
        private Panel panel9;
        private Panel PlSearch;
        protected string ProctMoney = "";
        protected string profit = "";
        protected string SalesAllMoney = "";
        protected string SalesAllMoneyReturn = "";
        protected string SalesCost = "";
        protected string SalesPresent = "";
        protected string SalesSentPro = "";
        public const int SC_MOVE = 0xf010;
        public const int WM_SYSCOMMAND = 0x112;

        public FrmGainStatList()
        {
            this.InitializeComponent();
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.UserPaint, true);
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.dateTime_BeginTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-01"));
            this.DataLoad();
        }

        private void btn_Close_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void btnSearch_Click(object sender, EventArgs e)
        {
            this.DataLoad();
        }

        private void DataLoad()
        {
            this.lblTongJiShiJian.Text = "统计时间: " + this.dateTime_BeginTime.Value.ToString("yyyy-MM-dd") + " 至 " + this.dateTime_EndTime.Value.ToString("yyyy-MM-dd");
            UserEnt loginUser = PublicAppliction.LoginUser;
            string str = ProfitAndLossBll.ReturnSaleMoney(DateTime.Parse(this.dateTime_BeginTime.Value.ToString()), DateTime.Parse(this.dateTime_EndTime.Value.ToString()), loginUser.ChainNum.ToString());
            this.SalesAllMoneyReturn = ProfitAndLossBll.ReturnSaleReturnMoney(DateTime.Parse(this.dateTime_BeginTime.Value.ToString()), DateTime.Parse(this.dateTime_EndTime.Value.ToString()), loginUser.ChainNum.ToString());
            this.SalesCost = ProfitAndLossBll.ReturnSaleCost(DateTime.Parse(this.dateTime_BeginTime.Value.ToString()), DateTime.Parse(this.dateTime_EndTime.Value.ToString()), loginUser.ChainNum.ToString());
            this.SalesSentPro = ProfitAndLossBll.ReturnSendProMoney(DateTime.Parse(this.dateTime_BeginTime.Value.ToString()), DateTime.Parse(this.dateTime_EndTime.Value.ToString()), loginUser.ChainNum.ToString());
            this.SalesPresent = ProfitAndLossBll.ReturnTestDunk(DateTime.Parse(this.dateTime_BeginTime.Value.ToString()), DateTime.Parse(this.dateTime_EndTime.Value.ToString()), loginUser.ChainNum.ToString());
            this.OtherInputMoney = ProfitAndLossBll.ReturnOtherInput(DateTime.Parse(this.dateTime_BeginTime.Value.ToString()), DateTime.Parse(this.dateTime_EndTime.Value.ToString()), loginUser.ChainNum.ToString());
            this.OtherOutMoney = ProfitAndLossBll.ReturnOtherOut(DateTime.Parse(this.dateTime_BeginTime.Value.ToString()), DateTime.Parse(this.dateTime_EndTime.Value.ToString()), loginUser.ChainNum.ToString());
            this.ProctMoney = ProfitAndLossBll.ReturnProcurment(DateTime.Parse(this.dateTime_BeginTime.Value.ToString()), DateTime.Parse(this.dateTime_EndTime.Value.ToString()), loginUser.ChainNum.ToString());
            this.CheckInputMoney = ProfitAndLossBll.ReturnInventoryInput(DateTime.Parse(this.dateTime_BeginTime.Value.ToString()), DateTime.Parse(this.dateTime_EndTime.Value.ToString()), loginUser.ChainNum.ToString());
            this.CheckOutMoney = ProfitAndLossBll.ReturnInventoryOut(DateTime.Parse(this.dateTime_BeginTime.Value.ToString()), DateTime.Parse(this.dateTime_EndTime.Value.ToString()), loginUser.ChainNum.ToString());
            string[] strArray = str.Split(new char[] { '|' });
            this.SalesAllMoney = " 已收款项:+" + strArray[0] + "                     未收款项:+" + strArray[1];
            this.profit = ((((((((decimal.Parse(strArray[0]) + decimal.Parse(strArray[1])) - decimal.Parse(this.SalesAllMoneyReturn)) - ((decimal.Parse(this.SalesCost) + decimal.Parse(this.SalesPresent)) + decimal.Parse(this.SalesSentPro))) - decimal.Parse(this.ProctMoney)) + decimal.Parse(this.OtherInputMoney)) - decimal.Parse(this.OtherOutMoney)) + decimal.Parse(this.CheckInputMoney)) - decimal.Parse(this.CheckOutMoney)).ToString();
            this.SalesCost = "-" + this.SalesCost;
            this.SalesSentPro = "-" + this.SalesSentPro;
            this.SalesPresent = "-" + this.SalesPresent;
            this.ProctMoney = "-" + this.ProctMoney;
            this.OtherInputMoney = "+" + this.OtherInputMoney;
            this.OtherOutMoney = "-" + this.OtherOutMoney;
            this.CheckInputMoney = "+" + this.CheckInputMoney;
            this.CheckOutMoney = "-" + this.CheckOutMoney;
            this.SalesAllMoneyReturn = "-" + this.SalesAllMoneyReturn;
            this.lbl_XiaoShouShouRu.Text = "其中销售收入: " + this.SalesAllMoney;
            this.lbl_XiaoShouChengBensj.Text = "其中销售成本: " + this.SalesCost;
            this.lbl_SongLiChengBen.Text = "(加)送礼成本: " + this.SalesSentPro;
            this.lbl_ShiPaoChengBen.Text = "(加)试泡成本: " + this.SalesPresent;
            this.lbl_CaiGouFuKuan.Text = "(减)采购付款: " + this.ProctMoney;
            this.lbl_QtTaShouRu.Text = "(加)其他收入: " + this.OtherInputMoney;
            this.lbl_FeiYongZhiChu.Text = "(减)费用支出: " + this.OtherOutMoney;
            this.lbl_LiRun.Text = "利   润:" + this.profit;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.pan_DockLeft = new Panel();
            this.pan_Dock = new Panel();
            this.pan_AllPanel = new Panel();
            this.pan_AllPlanes = new Panel();
            this.panel10 = new Panel();
            this.lbl_LiRun = new Label();
            this.lbl_FeiYongZhiChu = new Label();
            this.lbl_QtTaShouRu = new Label();
            this.lbl_CaiGouFuKuan = new Label();
            this.label10 = new Label();
            this.lbl_ShiPaoChengBen = new Label();
            this.lbl_SongLiChengBen = new Label();
            this.lbl_XiaoShouChengBen = new Label();
            this.lbl_XiaoShouChengBensj = new Label();
            this.lbl_XiaoShouShouRu = new Label();
            this.lbl_SalesValue = new Label();
            this.label5 = new Label();
            this.label4 = new Label();
            this.lblTongJiShiJian = new Label();
            this.panel7 = new Panel();
            this.panel6 = new Panel();
            this.panel5 = new Panel();
            this.btn_Close = new Button();
            this.PlSearch = new Panel();
            this.panel24 = new Panel();
            this.label2 = new Label();
            this.dateTime_EndTime = new DateTimePicker();
            this.dateTime_BeginTime = new DateTimePicker();
            this.panel25 = new Panel();
            this.lbl_CreateTime = new Label();
            this.panel4 = new Panel();
            this.panel8 = new Panel();
            this.panel1 = new Panel();
            this.panel19 = new Panel();
            this.btnSearch = new Button();
            this.panel3 = new Panel();
            this.panel2 = new Panel();
            this.pan_TopJianGe = new Panel();
            this.panel9 = new Panel();
            this.pan_Rights = new Panel();
            this.pan_Lefts = new Panel();
            this.pan_Bottoms = new Panel();
            this.pane_TopT = new Panel();
            this.pan_DockBottom = new Panel();
            this.pan_DockRight = new Panel();
            this.pan_Top = new Panel();
            this.pan_ZhongJian = new Panel();
            this.lblTitle = new Label();
            this.pan_TopRight = new Panel();
            this.pan_TopLeft = new Panel();
            this.pan_Dock.SuspendLayout();
            this.pan_AllPanel.SuspendLayout();
            this.pan_AllPlanes.SuspendLayout();
            this.panel10.SuspendLayout();
            this.panel5.SuspendLayout();
            this.PlSearch.SuspendLayout();
            this.panel24.SuspendLayout();
            this.panel25.SuspendLayout();
            this.panel1.SuspendLayout();
            this.panel19.SuspendLayout();
            this.pan_Top.SuspendLayout();
            this.pan_ZhongJian.SuspendLayout();
            base.SuspendLayout();
            this.pan_DockLeft.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockLeft.Dock = DockStyle.Left;
            this.pan_DockLeft.Location = new Point(0, 0);
            this.pan_DockLeft.Name = "pan_DockLeft";
            this.pan_DockLeft.Size = new Size(1, 0x254);
            this.pan_DockLeft.TabIndex = 0;
            this.pan_Dock.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.pan_Dock.Controls.Add(this.pan_AllPanel);
            this.pan_Dock.Controls.Add(this.pan_DockBottom);
            this.pan_Dock.Controls.Add(this.pan_DockRight);
            this.pan_Dock.Controls.Add(this.pan_DockLeft);
            this.pan_Dock.Dock = DockStyle.Fill;
            this.pan_Dock.Location = new Point(0, 0x20);
            this.pan_Dock.Name = "pan_Dock";
            this.pan_Dock.Size = new Size(870, 0x254);
            this.pan_Dock.TabIndex = 5;
            this.pan_AllPanel.BackColor = Color.White;
            this.pan_AllPanel.Controls.Add(this.pan_AllPlanes);
            this.pan_AllPanel.Controls.Add(this.pan_Rights);
            this.pan_AllPanel.Controls.Add(this.pan_Lefts);
            this.pan_AllPanel.Controls.Add(this.pan_Bottoms);
            this.pan_AllPanel.Controls.Add(this.pane_TopT);
            this.pan_AllPanel.Dock = DockStyle.Fill;
            this.pan_AllPanel.Location = new Point(1, 0);
            this.pan_AllPanel.Name = "pan_AllPanel";
            this.pan_AllPanel.Size = new Size(0x364, 0x253);
            this.pan_AllPanel.TabIndex = 3;
            this.pan_AllPlanes.Controls.Add(this.panel10);
            this.pan_AllPlanes.Controls.Add(this.panel7);
            this.pan_AllPlanes.Controls.Add(this.panel6);
            this.pan_AllPlanes.Controls.Add(this.panel5);
            this.pan_AllPlanes.Controls.Add(this.PlSearch);
            this.pan_AllPlanes.Controls.Add(this.panel4);
            this.pan_AllPlanes.Controls.Add(this.panel8);
            this.pan_AllPlanes.Controls.Add(this.panel1);
            this.pan_AllPlanes.Controls.Add(this.pan_TopJianGe);
            this.pan_AllPlanes.Controls.Add(this.panel9);
            this.pan_AllPlanes.Dock = DockStyle.Fill;
            this.pan_AllPlanes.Location = new Point(10, 10);
            this.pan_AllPlanes.Name = "pan_AllPlanes";
            this.pan_AllPlanes.Size = new Size(0x350, 0x23f);
            this.pan_AllPlanes.TabIndex = 4;
            this.pan_AllPlanes.Paint += new PaintEventHandler(this.pan_AllPlanes_Paint);
            this.panel10.Controls.Add(this.lbl_LiRun);
            this.panel10.Controls.Add(this.lbl_FeiYongZhiChu);
            this.panel10.Controls.Add(this.lbl_QtTaShouRu);
            this.panel10.Controls.Add(this.lbl_CaiGouFuKuan);
            this.panel10.Controls.Add(this.label10);
            this.panel10.Controls.Add(this.lbl_ShiPaoChengBen);
            this.panel10.Controls.Add(this.lbl_SongLiChengBen);
            this.panel10.Controls.Add(this.lbl_XiaoShouChengBen);
            this.panel10.Controls.Add(this.lbl_XiaoShouChengBensj);
            this.panel10.Controls.Add(this.lbl_XiaoShouShouRu);
            this.panel10.Controls.Add(this.lbl_SalesValue);
            this.panel10.Controls.Add(this.label5);
            this.panel10.Controls.Add(this.label4);
            this.panel10.Controls.Add(this.lblTongJiShiJian);
            this.panel10.Dock = DockStyle.Fill;
            this.panel10.Location = new Point(0, 0x4f);
            this.panel10.Name = "panel10";
            this.panel10.Size = new Size(0x350, 0x1b1);
            this.panel10.TabIndex = 0x20;
            this.panel10.Paint += new PaintEventHandler(this.panel10_Paint);
            this.lbl_LiRun.AutoSize = true;
            this.lbl_LiRun.Font = new Font("宋体", 10f);
            this.lbl_LiRun.Location = new Point(0xaf, 0x15a);
            this.lbl_LiRun.Name = "lbl_LiRun";
            this.lbl_LiRun.Size = new Size(0x3f, 14);
            this.lbl_LiRun.TabIndex = 0x2c;
            this.lbl_LiRun.Text = "利   润:";
            this.lbl_FeiYongZhiChu.AutoSize = true;
            this.lbl_FeiYongZhiChu.Font = new Font("宋体", 10f);
            this.lbl_FeiYongZhiChu.Location = new Point(160, 0x137);
            this.lbl_FeiYongZhiChu.Name = "lbl_FeiYongZhiChu";
            this.lbl_FeiYongZhiChu.Size = new Size(0x62, 14);
            this.lbl_FeiYongZhiChu.TabIndex = 0x2b;
            this.lbl_FeiYongZhiChu.Text = "(减)费用支出:";
            this.lbl_QtTaShouRu.AutoSize = true;
            this.lbl_QtTaShouRu.Font = new Font("宋体", 10f);
            this.lbl_QtTaShouRu.Location = new Point(160, 0x119);
            this.lbl_QtTaShouRu.Name = "lbl_QtTaShouRu";
            this.lbl_QtTaShouRu.Size = new Size(0x62, 14);
            this.lbl_QtTaShouRu.TabIndex = 0x2a;
            this.lbl_QtTaShouRu.Text = "(加)其他收入:";
            this.lbl_CaiGouFuKuan.AutoSize = true;
            this.lbl_CaiGouFuKuan.Font = new Font("宋体", 10f);
            this.lbl_CaiGouFuKuan.Location = new Point(160, 0xfb);
            this.lbl_CaiGouFuKuan.Name = "lbl_CaiGouFuKuan";
            this.lbl_CaiGouFuKuan.Size = new Size(0x62, 14);
            this.lbl_CaiGouFuKuan.TabIndex = 0x29;
            this.lbl_CaiGouFuKuan.Text = "(减)采购付款:";
            this.label10.AutoSize = true;
            this.label10.Font = new Font("宋体", 10f);
            this.label10.Location = new Point(0xa2, 0xdd);
            this.label10.Name = "label10";
            this.label10.Size = new Size(0x3f, 14);
            this.label10.TabIndex = 40;
            this.label10.Text = "采购成本";
            this.lbl_ShiPaoChengBen.AutoSize = true;
            this.lbl_ShiPaoChengBen.Font = new Font("宋体", 10f);
            this.lbl_ShiPaoChengBen.Location = new Point(160, 0xbc);
            this.lbl_ShiPaoChengBen.Name = "lbl_ShiPaoChengBen";
            this.lbl_ShiPaoChengBen.Size = new Size(0x62, 14);
            this.lbl_ShiPaoChengBen.TabIndex = 0x27;
            this.lbl_ShiPaoChengBen.Text = "(加)试泡成本:";
            this.lbl_SongLiChengBen.AutoSize = true;
            this.lbl_SongLiChengBen.Font = new Font("宋体", 10f);
            this.lbl_SongLiChengBen.Location = new Point(160, 0x9e);
            this.lbl_SongLiChengBen.Name = "lbl_SongLiChengBen";
            this.lbl_SongLiChengBen.Size = new Size(0x62, 14);
            this.lbl_SongLiChengBen.TabIndex = 0x26;
            this.lbl_SongLiChengBen.Text = "(加)送礼成本:";
            this.lbl_XiaoShouChengBen.AutoSize = true;
            this.lbl_XiaoShouChengBen.Font = new Font("宋体", 10f);
            this.lbl_XiaoShouChengBen.Location = new Point(160, 0x80);
            this.lbl_XiaoShouChengBen.Name = "lbl_XiaoShouChengBen";
            this.lbl_XiaoShouChengBen.Size = new Size(0x62, 14);
            this.lbl_XiaoShouChengBen.TabIndex = 0x25;
            this.lbl_XiaoShouChengBen.Text = "其中销售成本:";
            this.lbl_XiaoShouChengBensj.AutoSize = true;
            this.lbl_XiaoShouChengBensj.Font = new Font("宋体", 10f);
            this.lbl_XiaoShouChengBensj.Location = new Point(0xa2, 100);
            this.lbl_XiaoShouChengBensj.Name = "lbl_XiaoShouChengBensj";
            this.lbl_XiaoShouChengBensj.Size = new Size(0x3f, 14);
            this.lbl_XiaoShouChengBensj.TabIndex = 0x24;
            this.lbl_XiaoShouChengBensj.Text = "销售成本";
            this.lbl_XiaoShouShouRu.AutoSize = true;
            this.lbl_XiaoShouShouRu.Font = new Font("宋体", 10f);
            this.lbl_XiaoShouShouRu.Location = new Point(160, 0x42);
            this.lbl_XiaoShouShouRu.Name = "lbl_XiaoShouShouRu";
            this.lbl_XiaoShouShouRu.Size = new Size(0x62, 14);
            this.lbl_XiaoShouShouRu.TabIndex = 0x23;
            this.lbl_XiaoShouShouRu.Text = "其中销售收入:";
            this.lbl_SalesValue.AutoSize = true;
            this.lbl_SalesValue.Font = new Font("宋体", 10f);
            this.lbl_SalesValue.Location = new Point(0xa2, 0x26);
            this.lbl_SalesValue.Name = "lbl_SalesValue";
            this.lbl_SalesValue.Size = new Size(0x31, 14);
            this.lbl_SalesValue.TabIndex = 0x22;
            this.lbl_SalesValue.Text = "销售额";
            this.label5.AutoSize = true;
            this.label5.Font = new Font("宋体", 10f);
            this.label5.Location = new Point(0x9f, 410);
            this.label5.Name = "label5";
            this.label5.Size = new Size(0x214, 14);
            this.label5.TabIndex = 0x21;
            this.label5.Text = "净利润=(销售收入)-(销售成本+送礼成本+试泡成本)-(采购成本)+其他收入-费用开支\r\n";
            this.label4.AutoSize = true;
            this.label4.Font = new Font("宋体", 10f);
            this.label4.Location = new Point(0x9f, 0x179);
            this.label4.Name = "label4";
            this.label4.Size = new Size(0x157, 14);
            this.label4.TabIndex = 0x20;
            this.label4.Text = "备注:采购付款金额统计时间 按照货物入库时间为基准";
            this.lblTongJiShiJian.AutoSize = true;
            this.lblTongJiShiJian.Font = new Font("宋体", 10f);
            this.lblTongJiShiJian.Location = new Point(0xa9, 8);
            this.lblTongJiShiJian.Name = "lblTongJiShiJian";
            this.lblTongJiShiJian.Size = new Size(70, 14);
            this.lblTongJiShiJian.TabIndex = 0x1f;
            this.lblTongJiShiJian.Text = "统计时间:";
            this.panel7.Dock = DockStyle.Bottom;
            this.panel7.Location = new Point(0, 0x200);
            this.panel7.Name = "panel7";
            this.panel7.Size = new Size(0x350, 10);
            this.panel7.TabIndex = 0x1f;
            this.panel6.Dock = DockStyle.Top;
            this.panel6.Location = new Point(0, 0x45);
            this.panel6.Name = "panel6";
            this.panel6.Size = new Size(0x350, 10);
            this.panel6.TabIndex = 30;
            this.panel5.Controls.Add(this.btn_Close);
            this.panel5.Dock = DockStyle.Bottom;
            this.panel5.Location = new Point(0, 0x20a);
            this.panel5.Name = "panel5";
            this.panel5.Size = new Size(0x350, 0x2b);
            this.panel5.TabIndex = 0x1d;
            this.panel5.Paint += new PaintEventHandler(this.panel5_Paint);
            this.btn_Close.Location = new Point(0x183, 10);
            this.btn_Close.Name = "btn_Close";
            this.btn_Close.Size = new Size(0x4b, 0x17);
            this.btn_Close.TabIndex = 0x1c;
            this.btn_Close.Text = "关 闭";
            this.btn_Close.UseVisualStyleBackColor = true;
            this.btn_Close.Click += new EventHandler(this.btn_Close_Click);
            this.PlSearch.Controls.Add(this.panel24);
            this.PlSearch.Controls.Add(this.panel25);
            this.PlSearch.Dock = DockStyle.Top;
            this.PlSearch.Location = new Point(0, 0x2a);
            this.PlSearch.Name = "PlSearch";
            this.PlSearch.Size = new Size(0x350, 0x1b);
            this.PlSearch.TabIndex = 12;
            this.panel24.Controls.Add(this.label2);
            this.panel24.Controls.Add(this.dateTime_EndTime);
            this.panel24.Controls.Add(this.dateTime_BeginTime);
            this.panel24.Dock = DockStyle.Fill;
            this.panel24.Location = new Point(0x59, 0);
            this.panel24.Name = "panel24";
            this.panel24.Size = new Size(0x2f7, 0x1b);
            this.panel24.TabIndex = 0x17;
            this.label2.AutoSize = true;
            this.label2.Location = new Point(0xa7, 7);
            this.label2.Name = "label2";
            this.label2.Size = new Size(11, 12);
            this.label2.TabIndex = 2;
            this.label2.Text = "-";
            this.dateTime_EndTime.Location = new Point(0xbd, 3);
            this.dateTime_EndTime.Name = "dateTime_EndTime";
            this.dateTime_EndTime.Size = new Size(0x91, 0x15);
            this.dateTime_EndTime.TabIndex = 1;
            this.dateTime_BeginTime.Location = new Point(3, 3);
            this.dateTime_BeginTime.Name = "dateTime_BeginTime";
            this.dateTime_BeginTime.Size = new Size(0x94, 0x15);
            this.dateTime_BeginTime.TabIndex = 0;
            this.panel25.Controls.Add(this.lbl_CreateTime);
            this.panel25.Dock = DockStyle.Left;
            this.panel25.Location = new Point(0, 0);
            this.panel25.Name = "panel25";
            this.panel25.Size = new Size(0x59, 0x1b);
            this.panel25.TabIndex = 0x16;
            this.lbl_CreateTime.AutoSize = true;
            this.lbl_CreateTime.Location = new Point(0x17, 7);
            this.lbl_CreateTime.Name = "lbl_CreateTime";
            this.lbl_CreateTime.Size = new Size(0x3b, 12);
            this.lbl_CreateTime.TabIndex = 0;
            this.lbl_CreateTime.Text = "销售时间:";
            this.panel4.Dock = DockStyle.Bottom;
            this.panel4.Location = new Point(0, 0x235);
            this.panel4.Name = "panel4";
            this.panel4.Size = new Size(0x350, 5);
            this.panel4.TabIndex = 11;
            this.panel8.Dock = DockStyle.Top;
            this.panel8.Location = new Point(0, 0x22);
            this.panel8.Name = "panel8";
            this.panel8.Size = new Size(0x350, 8);
            this.panel8.TabIndex = 9;
            this.panel1.BackColor = Color.FromArgb(0xf6, 0xf6, 0xf6);
            this.panel1.Controls.Add(this.panel19);
            this.panel1.Controls.Add(this.panel3);
            this.panel1.Controls.Add(this.panel2);
            this.panel1.Dock = DockStyle.Top;
            this.panel1.Location = new Point(0, 8);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x350, 0x1a);
            this.panel1.TabIndex = 8;
            this.panel19.Controls.Add(this.btnSearch);
            this.panel19.Dock = DockStyle.Right;
            this.panel19.Location = new Point(0x2f7, 3);
            this.panel19.Name = "panel19";
            this.panel19.Size = new Size(0x59, 20);
            this.panel19.TabIndex = 0x11;
            this.btnSearch.Dock = DockStyle.Right;
            this.btnSearch.Location = new Point(14, 0);
            this.btnSearch.Name = "btnSearch";
            this.btnSearch.Size = new Size(0x4b, 20);
            this.btnSearch.TabIndex = 1;
            this.btnSearch.Text = "查 询";
            this.btnSearch.UseVisualStyleBackColor = true;
            this.btnSearch.Click += new EventHandler(this.btnSearch_Click);
            this.panel3.Dock = DockStyle.Bottom;
            this.panel3.Location = new Point(0, 0x17);
            this.panel3.Name = "panel3";
            this.panel3.Size = new Size(0x350, 3);
            this.panel3.TabIndex = 1;
            this.panel2.Dock = DockStyle.Top;
            this.panel2.Location = new Point(0, 0);
            this.panel2.Name = "panel2";
            this.panel2.Size = new Size(0x350, 3);
            this.panel2.TabIndex = 0;
            this.pan_TopJianGe.Dock = DockStyle.Top;
            this.pan_TopJianGe.Location = new Point(0, 0);
            this.pan_TopJianGe.Name = "pan_TopJianGe";
            this.pan_TopJianGe.Size = new Size(0x350, 8);
            this.pan_TopJianGe.TabIndex = 6;
            this.panel9.Dock = DockStyle.Bottom;
            this.panel9.Location = new Point(0, 570);
            this.panel9.Name = "panel9";
            this.panel9.Size = new Size(0x350, 5);
            this.panel9.TabIndex = 3;
            this.pan_Rights.Dock = DockStyle.Right;
            this.pan_Rights.Location = new Point(0x35a, 10);
            this.pan_Rights.Name = "pan_Rights";
            this.pan_Rights.Size = new Size(10, 0x23f);
            this.pan_Rights.TabIndex = 3;
            this.pan_Lefts.Dock = DockStyle.Left;
            this.pan_Lefts.Location = new Point(0, 10);
            this.pan_Lefts.Name = "pan_Lefts";
            this.pan_Lefts.Size = new Size(10, 0x23f);
            this.pan_Lefts.TabIndex = 2;
            this.pan_Bottoms.Dock = DockStyle.Bottom;
            this.pan_Bottoms.Location = new Point(0, 0x249);
            this.pan_Bottoms.Name = "pan_Bottoms";
            this.pan_Bottoms.Size = new Size(0x364, 10);
            this.pan_Bottoms.TabIndex = 1;
            this.pane_TopT.Dock = DockStyle.Top;
            this.pane_TopT.Location = new Point(0, 0);
            this.pane_TopT.Name = "pane_TopT";
            this.pane_TopT.Size = new Size(0x364, 10);
            this.pane_TopT.TabIndex = 0;
            this.pan_DockBottom.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockBottom.Dock = DockStyle.Bottom;
            this.pan_DockBottom.Location = new Point(1, 0x253);
            this.pan_DockBottom.Name = "pan_DockBottom";
            this.pan_DockBottom.Size = new Size(0x364, 1);
            this.pan_DockBottom.TabIndex = 2;
            this.pan_DockRight.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockRight.Dock = DockStyle.Right;
            this.pan_DockRight.Location = new Point(0x365, 0);
            this.pan_DockRight.Name = "pan_DockRight";
            this.pan_DockRight.Size = new Size(1, 0x254);
            this.pan_DockRight.TabIndex = 1;
            this.pan_Top.Controls.Add(this.pan_ZhongJian);
            this.pan_Top.Controls.Add(this.pan_TopRight);
            this.pan_Top.Controls.Add(this.pan_TopLeft);
            this.pan_Top.Dock = DockStyle.Top;
            this.pan_Top.Location = new Point(0, 0);
            this.pan_Top.Name = "pan_Top";
            this.pan_Top.Size = new Size(870, 0x20);
            this.pan_Top.TabIndex = 4;
            this.pan_ZhongJian.BackgroundImage = Resources.uc_title_2;
            this.pan_ZhongJian.Controls.Add(this.lblTitle);
            this.pan_ZhongJian.Dock = DockStyle.Fill;
            this.pan_ZhongJian.Location = new Point(0x1f, 0);
            this.pan_ZhongJian.Name = "pan_ZhongJian";
            this.pan_ZhongJian.Size = new Size(0x342, 0x20);
            this.pan_ZhongJian.TabIndex = 2;
            this.pan_ZhongJian.MouseDown += new MouseEventHandler(this.pan_ZhongJian_MouseDown);
            this.lblTitle.AutoSize = true;
            this.lblTitle.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.lblTitle.Font = new Font("宋体", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.lblTitle.ForeColor = Color.FromArgb(0x3b, 0x56, 20);
            this.lblTitle.Location = new Point(6, 8);
            this.lblTitle.Name = "lblTitle";
            this.lblTitle.Size = new Size(0x3f, 13);
            this.lblTitle.TabIndex = 0;
            this.lblTitle.Text = "利润统计";
            this.pan_TopRight.BackgroundImage = Resources.uc_title_1;
            this.pan_TopRight.Dock = DockStyle.Right;
            this.pan_TopRight.Location = new Point(0x361, 0);
            this.pan_TopRight.Name = "pan_TopRight";
            this.pan_TopRight.Size = new Size(5, 0x20);
            this.pan_TopRight.TabIndex = 1;
            this.pan_TopLeft.BackgroundImage = Resources.uc_title;
            this.pan_TopLeft.Dock = DockStyle.Left;
            this.pan_TopLeft.Location = new Point(0, 0);
            this.pan_TopLeft.Name = "pan_TopLeft";
            this.pan_TopLeft.Size = new Size(0x1f, 0x20);
            this.pan_TopLeft.TabIndex = 0;
            this.pan_TopLeft.MouseDown += new MouseEventHandler(this.pan_TopLeft_MouseDown);
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(870, 0x274);
            base.Controls.Add(this.pan_Dock);
            base.Controls.Add(this.pan_Top);
            base.FormBorderStyle = FormBorderStyle.None;
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "FrmGainStatList";
            base.ShowInTaskbar = false;
            this.pan_Dock.ResumeLayout(false);
            this.pan_AllPanel.ResumeLayout(false);
            this.pan_AllPlanes.ResumeLayout(false);
            this.panel10.ResumeLayout(false);
            this.panel10.PerformLayout();
            this.panel5.ResumeLayout(false);
            this.PlSearch.ResumeLayout(false);
            this.panel24.ResumeLayout(false);
            this.panel24.PerformLayout();
            this.panel25.ResumeLayout(false);
            this.panel25.PerformLayout();
            this.panel1.ResumeLayout(false);
            this.panel19.ResumeLayout(false);
            this.pan_Top.ResumeLayout(false);
            this.pan_ZhongJian.ResumeLayout(false);
            this.pan_ZhongJian.PerformLayout();
            base.ResumeLayout(false);
        }

        private void pan_AllPlanes_Paint(object sender, PaintEventArgs e)
        {
        }

        private void pan_TopLeft_MouseDown(object sender, MouseEventArgs e)
        {
            ReleaseCapture();
            SendMessage(base.Handle, 0x112, 0xf012, 0);
        }

        private void pan_ZhongJian_MouseDown(object sender, MouseEventArgs e)
        {
            ReleaseCapture();
            SendMessage(base.Handle, 0x112, 0xf012, 0);
        }

        private void Panel_ResetPaint(PaintEventArgs e, Panel panel, Color color, int leftBoder, int topBoder, int rightBoder, int bottomBoder)
        {
            ControlPaint.DrawBorder(e.Graphics, panel.ClientRectangle, color, leftBoder, ButtonBorderStyle.Solid, color, topBoder, ButtonBorderStyle.Solid, color, rightBoder, ButtonBorderStyle.Solid, color, bottomBoder, ButtonBorderStyle.Solid);
        }

        private void panel10_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel10, Color.FromArgb(0xca, 0xc9, 0xce), 1, 1, 1, 1);
        }

        private void panel5_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel5, Color.FromArgb(0xca, 0xc9, 0xce), 1, 1, 1, 1);
        }

        [DllImport("user32.dll")]
        public static extern bool ReleaseCapture();
        [DllImport("user32.dll")]
        public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
    }
}

